<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="keywords" content="请替换为您的关键字">
  <meta name="description" content="请替换为您的描述">
  <title>添加发票抬头</title>
  <!-- bower:css -->
  <!-- endbower -->
  <!-- mui picker -->
  <!--<link rel="stylesheet" href="verdors/dcloud-mui/plugin/picker/dist/css/mui.picker.all.css">-->
  <link rel="stylesheet" href="verdors/dcloud-mui/examples/hello-mui/css/mui.picker.css">
  <link rel="stylesheet" href="verdors/dcloud-mui/examples/hello-mui/css/mui.poppicker.css">
  <link rel="stylesheet" href="fonts/iconfont.css">
  <link rel="stylesheet" href="styles/main.css">
</head>
<body class="bg-gray">
<div class="container">
  <!-- 信息录入 -->
  <form class="form-horizontal wl-form invoice-title">
    <div class="wl-form-mutil">
      <div class="wl-form-group">
        <label class="col-xs-5">发票抬头</label>
        <div class="col-xs-7">
          <input type="text" placeholder="请输入">
        </div>
      </div>
      <hr>
      <div class="wl-form-group">
        <label class="col-xs-5">电话号码</label>
        <div class="col-xs-7">
          <input type="text" placeholder="请输入">
        </div>
      </div>
      <hr>
      <div class="wl-form-group">
        <label class="col-xs-5">纳税编码</label>
        <div class="col-xs-7">
          <input type="text" placeholder="请输入">
        </div>
      </div>
      <hr>
      <div class="wl-form-group picker">
        <label class="col-xs-5">企业类型</label>
        <div class="col-xs-7">
          <p id='showUserPicker' class="ui-alert">请选择</p>
        </div>
      </div>
      <hr>
      <div class="wl-form-group">
        <label class="col-xs-5">地址</label>
        <div class="col-xs-7">
          <input type="text" placeholder="请输入">
        </div>
      </div>
      <hr>
      <div class="wl-form-group">
        <label class="col-xs-5">银行账号</label>
        <div class="col-xs-7">
          <input type="text" placeholder="请输入">
        </div>
      </div>
    </div>
  </form>
  <!-- /信息录入 -->

  <div class="row submitBtns">
    <div class="col-xs-12">
      <a href="invoice-title.html" class="btn btn-primary btn-lg btn-block">确定添加</a>
    </div>
  </div>
</div>

<!-- bower:js -->
<!-- endbower -->
<script src="verdors/dcloud-mui/examples/hello-mui/js/mui.min.js"></script>
<script src="verdors/dcloud-mui/examples/hello-mui/js/mui.picker.js"></script>
<script src="verdors/dcloud-mui/examples/hello-mui/js/mui.poppicker.js"></script>
<script>
  (function($, doc) {
    $.init();
    $.ready(function() {
      /**
       * 获取对象属性的值
       * 主要用于过滤三级联动中，可能出现的最低级的数据不存在的情况，实际开发中需要注意这一点；
       * @param {Object} obj 对象
       * @param {String} param 属性名
       */
      var _getParam = function(obj, param) {
        return obj[param] || '';
      };
      // 选择充电枪
      var userPicker = new $.PopPicker();
      userPicker.setData([{
        text: '民营企业'
      }, {
        text: '合资企业'
      }]);
      var showUserPickerButton = doc.getElementById('showUserPicker');
      var userResult = doc.getElementById('showUserPicker');
      showUserPickerButton.addEventListener('tap', function(event) {
        userPicker.show(function(items) {
          userResult.innerText = items[0].text;
          //返回 false 可以阻止选择框的关闭
          //return false;
        });
      }, false);
    });
  })(mui, document);
</script>
</body>
</html>
